//面包屑
const path = ['仓库管理', '出库管理', '采购退货出库列表'];
//搜索条件
const filterOption = {
	items: [{
		label: "关键字",
		type: "input",
		data: undefined,
		placeholder: "",
		value: undefined,
		key: "keyword"
	},
	{
		label: "退货单状态",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "status"
	},
	{
		label: "退货单类型",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "type"
	},
	{
		label: "供应商名称",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "supplierInfoId"
	},
	{
		label: "出库仓库",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "outWarehouseId"
	},
	{
		label: "创建日期",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "createTime"
	},
	{
		label: "出库日期",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "outSureTime"
	}],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};
//状态类型
const configArr = [
	{
        color: "brown",
        label: "全部采购退货单",
        value: "type1",
        count: 300
    },
    {
        color: "green",
        label: "待出库",
        value: "type2",
        count: 300
    },
]
//采购退货列表
const tableHeaderData = [
	{
		prop:'typeDict.value',
		label:'单据类型',
		width:''
	},
	{
		prop:'supplierInfoId',
		label:'供应商名称',
		width:''
	},
	{
		prop:'amountPayable',
		label:'退货原因',
		width:''
	},
	{
		prop:'outWarehouseId',
		label:'出库仓库',
		width:''
	},
	{
		prop:'statusDict.value',
		label:'退货单状态',
		width:''
	},
	{
		prop:'createBy',
		label:'创建人',
		width:''
	},
	{
		prop:'eee',
		label:'创建时间',
		width:''
	},
	{
		prop:'ddd',
		label:'操作人',
		width:''
	},
	{
		prop:'createTime',
		label:'出库时间',
		width:''
	},
]
//表格数据
const tableData = [];
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
//假数据
const mockData = [{
	deliveryNo: Math.random().toFixed(4),
	origin: Math.random().toFixed(4),
	deliveryTime: Math.random().toFixed(4),
	deliveryTime1: Math.random().toFixed(4),
	deliveryTime2: Math.random().toFixed(4),
	deliveryTime3: Math.random().toFixed(4),
	qcFinishTime: Math.random().toFixed(4),
	status: Math.random().toFixed(4),
	remark: Math.random().toFixed(4),
}]
let Model = {
	data() {
		return {
			Model: {
				path: path,
				paginationObject,
				configArr,
				filterOption: filterOption,
				tableHeaderData,							//采购退货列表（表头）
				tableData: mockData,						//采购退货列表数据
			}
		}
	}
}
export default Model;
